package com.qaml.mes.device.domain.convert;

import com.qaml.mes.device.dao.CheckUpkeepItemDO;
import com.qaml.mes.device.dto.eqp.CheckUpkeepItemDTO;
import com.qaml.mes.device.vo.eqp.CheckUpkeepItemVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
/**
 * @Filename：CheckUpkeepItemConvert
 * @Author：zhangzhifeng
 * @Project：mes-device
 * @Date：2024/3/1 16:14
 */
public interface CheckUpkeepItemConvert {

    CheckUpkeepItemConvert INSTANCE = Mappers.getMapper(CheckUpkeepItemConvert.class);

    /**
     * 批量 DTO --》 DO
     *
     * @param checkUpkeepItemDTOList
     * @return
     */
    List<CheckUpkeepItemDO> dto2DOList(List<CheckUpkeepItemDTO> checkUpkeepItemDTOList);

    /**
     * 批量 DO --》 DTO
     *
     * @param checkUpkeepItemDOS
     * @return
     */
    List<CheckUpkeepItemVO> toVOlist(List<CheckUpkeepItemDO> checkUpkeepItemDOS);
}
